/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.agilelang.editor.listener;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import org.agilelang.editor.ViewFrame;

/**
 *
 * @author RODERICK
 */
public class FileExit implements ActionListener {

    ViewFrame frame;

    public FileExit(ViewFrame frame) {
        this.frame = frame;
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        frame.save();
        System.exit(0);
    }
}
